package com.accp.demo.mapper.sale;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.accp.demo.pojo.sale.SaleOrder;
import com.accp.demo.pojo.sale.SaleOrderDetail;

public interface ISaleOrderMapper {
/**
 * 主祥分页查询
 */
public List<SaleOrder> queryPagesaleOrder(@Param("num")Integer pageNum,@Param("size")Integer pageSize);
/**
 *主祥新增
 */
public void saveSaleorder(@Param("map")Map<String,Object> map);
/**
 * 查询最大单号
 */
public String orderDanhao(@Param("map")Map<String,Object> map);
/**
 * 删除
 */
public void deleteSaleorder(String saleid);
/**
 *根据单号查询主祥
 */
public SaleOrder querysaleOrderall(String saleid);
/**
 * 查询总条数
 */
public int queryCount();
/**
 * 根据主表编号查询项表记录
 */
public List<SaleOrderDetail> querySaleOrderDetailall(String saleid);
/**
 * 反审核审核
 */
public void updatedate(Integer auditState, String auditTime,String permitter,String billNo);
}
